<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手工外发小程序 API 接口文档</title>
    <style>
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; line-height: 1.6; color: #333; max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #f8f9fa; }
        .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; border-radius: 10px; margin-bottom: 30px; text-align: center; }
        .section { background: white; padding: 25px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .endpoint { border-left: 4px solid #007bff; padding-left: 15px; margin: 15px 0; }
        .method { display: inline-block; padding: 4px 8px; border-radius: 4px; color: white; font-size: 12px; font-weight: bold; margin-right: 10px; }
        .get { background-color: #28a745; }
        .post { background-color: #007bff; }
        .put { background-color: #ffc107; color: #000; }
        .url { font-family: 'Courier New', monospace; background: #f1f3f4; padding: 5px 8px; border-radius: 4px; font-size: 14px; }
        .code { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 4px; padding: 15px; margin: 10px 0; font-family: 'Courier New', monospace; font-size: 13px; }
    </style>
</head>
<body>
    <div class="header">
        <h1>🎨 手工外发小程序 API 接口文档</h1>
        <p>服务地址：http://localhost:8080/api | 版本：v1.0.0 | 更新时间：$(date '+%Y-%m-%d %H:%M:%S')</p>
    </div>

    <div class="section">
        <h2>📖 在线文档</h2>
        <p><a href="http://localhost:8080/api/swagger-ui.html" target="_blank">🔗 Swagger UI 交互式文档</a></p>
    </div>

    <div class="section">
        <h2>📄 文档文件</h2>
        <ul>
            <li><a href="./api.md">📝 Markdown格式文档</a></li>
            <li><a href="./openapi.json">⚙️ OpenAPI JSON文档</a></li>
            <li><a href="./README.md">📚 文档目录说明</a></li>
        </ul>
    </div>
</body>
</html>
